package com.hl.shifangzhiyu.web;

import com.hl.shifangzhiyu.pojo.TeacherTeam;
import com.hl.shifangzhiyu.service.TeacherTeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/TeacherTeam")
public class TeacherTeamController {

    @Autowired
    private TeacherTeamService teacherTeamService;

    @RequestMapping("/getAllTeacher")
    public List<TeacherTeam> getAllTeacher(){
        return teacherTeamService.getAllTeacher();
    }
}
